public class MemberTest {
    public static void main(String[] args) {
        // Test GoldCardMember
        System.out.println("Testing GoldCardMember:");
        GoldCardMember gold = new GoldCardMember("M01 M 28");
        System.out.println(gold.toString());
        System.out.printf("Spending 3000: %.1f\n", gold.consume(3000));  // Should apply 5% discount
        System.out.printf("Spending 8000: %.1f\n", gold.consume(8000));  // Should apply 10% discount
        System.out.printf("Total cost: %.1f\n", gold.getTotalCost());
        System.out.println("Member account: " + gold.getMemberAccount());
        
        System.out.println("\nTesting SilverCardMember:");
        SilverCardMember silver = new SilverCardMember("M02 F 35");
        System.out.println(silver.toString());
        System.out.printf("Spending 4000: %.1f\n", silver.consume(4000));  // Should earn points
        System.out.printf("Points after first purchase: %.1f\n", silver.getPoints());
        System.out.printf("Spending 35000: %.1f\n", silver.consume(35000)); // Should earn and use points
        System.out.printf("Points after second purchase: %.1f\n", silver.getPoints());
        System.out.printf("Total cost: %.1f\n", silver.getTotalCost());
        System.out.println("Member account: " + silver.getMemberAccount());
    }
} 